package com.example.demo.result;

public enum  ResultEnum {

    SUCCESS(1,"请求成功"),
    ERROR(2,"请求失败"),
    EXISTS(3,"已存在请勿重复添加");


    private Integer code;
    private String msg;

    ResultEnum(Integer code , String msg) {
    this.code = code;
    this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
